--编写者：alt
--功能介绍：全部伤害视为位面
--使用方法：直接粘贴到模组环境 修改astesia_all_planar_damage为自己想要的flag位

--全部伤害视为位面
local Combat = require "components/combat"
local oldGetAttacked = Combat.GetAttacked
function Combat:GetAttacked(attacker, damage, weapon, stimuli, spdamage, ...)
    if attacker and attacker.astesia_all_planar_damage then
        spdamage = spdamage or {}
        spdamage.planar = (spdamage.planar or 0) + damage
        damage = 0
    end
    return oldGetAttacked(self, attacker, damage, weapon, stimuli, spdamage, ...)
end